public class People {
    private String name;
    private int age;
    private String job;
    private String gender;
    private String hobby;

    People(String name, int age, String job, String gender, String hobby) {
        this.name = name;
        this.age = age;
        this.job = job;
        this.gender = gender;
        this.hobby = hobby;
    }

    public void showInfo() {
        System.out.print("{\n    \"name\":\"" + name + "\",\n    \"gender\":\"" + gender + "\",\n    \"age\":\"" + age + "\",\n    \"job\":\"" + job + "\",\n    \"hobby\":\"" + hobby + "\"\n}");
    }
}
